package com.binguo.wxapi.service;


import com.binguo.wxapi.form.DetailForm;

import java.util.Arrays;


public class ManKeBaoOrderForm {
    /**
     * cardNo	string	50	是	饭卡号、付款码、用户二维码(mkb-)、本地刷脸用户ID(mkb_)、在线刷脸fToken(user_)
     */
    private String cardNo;
    /**
     * deviceCode	string	50	是	设备SN
     */
    private String deviceCode;
    /**
     * branchId	string	50	是	第三方门店ID,不传设备SN时必填
     */
    private String branchId;
    /**
     * deviceOrderId	String	20	是	设备订单ID(刷脸时由机头生成，刷卡或扫码时由结算台生成)
     */
    private String deviceOrderId;
    /**
     * offlineType	string	20	是	离线模式类型(true:离线、false:在线)
     */
    private String offlineTyoe;
    /**
     * payMoney	string	20	否	不传菜肴时必填支付金额
     */
    private String payMoney;
    /**
     * orderCreateTime	string	20	否	(离线模式必填)终端下单时间
     */
    private String orderCreateTime;
    /**
     * userName	string	20	否	(离线模式必填)用户姓名
     */
    private String userName;
    /**
     * mobile	string	20	否	(离线模式必填)手机号
     */
    private String mobile;
    /**
     * faceLinkmanMobile	string	20	否	(离线模式必填)紧急联系人手机号
     */
    private String faceLinkmanMobile;
    /**
     * details	string	-	否	菜肴信息(数组格式)
     * details[0].itemCode	string	20	是	菜品编号
     * details[0].count	string	20	是	菜品数量
     */
    private DetailForm[] details;

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getBranchId() {
        return branchId;
    }

    public void setBranchId(String branchId) {
        this.branchId = branchId;
    }

    public String getDeviceOrderId() {
        return deviceOrderId;
    }

    public void setDeviceOrderId(String deviceOrderId) {
        this.deviceOrderId = deviceOrderId;
    }

    public String getOfflineTyoe() {
        return offlineTyoe;
    }

    public void setOfflineTyoe(String offlineTyoe) {
        this.offlineTyoe = offlineTyoe;
    }

    public String getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(String payMoney) {
        this.payMoney = payMoney;
    }

    public String getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(String orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getFaceLinkmanMobile() {
        return faceLinkmanMobile;
    }

    public void setFaceLinkmanMobile(String faceLinkmanMobile) {
        this.faceLinkmanMobile = faceLinkmanMobile;
    }

    public DetailForm[] getDetails() {
        return details;
    }

    public void setDetails(DetailForm[] details) {
        this.details = details;
    }

    public ManKeBaoOrderForm(){}

    @Override
    public String toString() {
        return "ManKeBaoOrderForm{" +
                "cardNo='" + cardNo + '\'' +
                ", deviceCode='" + deviceCode + '\'' +
                ", branchId='" + branchId + '\'' +
                ", deviceOrderId='" + deviceOrderId + '\'' +
                ", offlineTyoe='" + offlineTyoe + '\'' +
                ", payMoney='" + payMoney + '\'' +
                ", orderCreateTime='" + orderCreateTime + '\'' +
                ", userName='" + userName + '\'' +
                ", mobile='" + mobile + '\'' +
                ", faceLinkmanMobile='" + faceLinkmanMobile + '\'' +
                ", details=" + Arrays.toString(details) +
                '}';
    }

    public ManKeBaoOrderForm(String cardNo, String deviceCode, String branchId, String deviceOrderId, String offlineTyoe, String payMoney, String orderCreateTime, String userName, String mobile, String faceLinkmanMobile, DetailForm[]  details) {
        if(null != cardNo){
            this.cardNo = cardNo;
        }
        if(null != deviceCode){
            this.deviceCode = deviceCode;
        }
        if(null != branchId){
            this.branchId = branchId;
        }
        if(null != deviceOrderId){
            this.deviceOrderId = deviceOrderId;
        }
        if(null != offlineTyoe){
            this.offlineTyoe = offlineTyoe;
        }
        if(null != payMoney){
            this.payMoney = payMoney;
        }
        if(null != orderCreateTime){
            this.orderCreateTime = orderCreateTime;
        }
        if(null != userName){
            this.userName = userName;
        }
        if(null != mobile){
            this.mobile = mobile;
        }
        if(null != faceLinkmanMobile){
            this.faceLinkmanMobile = faceLinkmanMobile;
        }
        if(null != details){
            this.details = details;
        }












    }
}
